﻿<!DOCTYPE html>
<html>

<head>
    <title></title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href="../bootstrap-5.1.3-dist/css/bootstrap.css" rel="stylesheet">
    <script src="../bootstrap-5.1.3-dist/js/bootstrap.bundle.js"></script>
</head>

<body class="container">
    <h3 align="center">淡入交互效果</h3>
    <ul class="nav nav-pills">
        <li class="nav-item">
            <a class="nav-link active" data-bs-toggle="pill" href="#head">电脑办公</a>
        </li>
        <li class="nav-item">
            <a class="nav-link" data-bs-toggle="pill" href="#new">家用电器</a>
        </li>
        <li class="nav-item">
            <a class="nav-link" data-bs-toggle="pill" href="#template">旅行箱包</a>
        </li>
        <li class="nav-item">
            <a class="nav-link" data-bs-toggle="pill" href="#about">水果特产</a>
        </li>
    </ul>
    <div class="tab-content">
        <div class="tab-pane fade show active " id="head"><img src="2.jpg"></div>
        <div class="tab-pane fade " id="new"><img src="3.jpg"></div>
        <div class="tab-pane fade " id="template"><img src="4.jpg"></div>
        <div class="tab-pane fade " id="about"><img src="5.jpg"></div>
    </div>
</body>

</html>